const Sequelize = require('sequelize');
// 数据库配置 
const sqlConfig = {
    host: "mysql.haze.com",
    database: "nhp_web_db_dev",
    user: "haze_user",
    password: "DTMzpaVxXnZSj92c",
};

// sequelize配置
const sequelize = new Sequelize(sqlConfig.database, sqlConfig.user, sqlConfig.password, {
    host: sqlConfig.host,
    dialect: 'mysql',
    pool: {
        max: 5,
        min: 0,
        idle: 10000,
        acquire: 30000
    }
});

module.exports = {
    sequelize
};